export const PARAMS_SETTLE = [
    {
        type: "a-input",
        field: "settleBatchCode",
        title: "结算批次编号",
        value: "",
        props: {placeholder:"请输入结算批次编号"}
    },
    {
        type: "a-input",
        field: "settleBatchName",
        title: "结算批次名称",
        value: "",
        props: {placeholder:"请输入结算批次名称"}
    },
    {
        type: "a-input",
        field: "taskName",
        title: "任务名称",
        value: "",
        props: {placeholder:"请输入任务名称"}
    },
    {
        type: "a-input",
        field: "enterpriseName",
        title: "企业名称",
        value: "",
        props: {placeholder:"企业名称"}
    },
    {
        type: "a-input",
        field: "parkName",
        title: "园区名称",
        value: "",
        props: {placeholder:"园区名称"}
    },
    {
        type: "select",
        field: "payChannel",
        title: "支付通道",
        value: "",
        options: [
            { value: '', label: '全部'},
            { value: 1, label: '招行'},
            { value: 3, label: '支付宝到卡' },
            { value: 4, label: '支付宝到户'},
        ],
        props: {placeholder:"请选择支付通道"}
    },
    
    {
        type: "select",
        field: "isInvoiced",
        title: "是否开票",
        value: "",
        options: [
            { value:'',label: '全部'},
            { value:1,label: '是'},
            { value:2,label: '否'},
        ],
        props: {placeholder:"请选择是否开票"}
    },
    {
        type: "a-range-picker",
        field: "day",
        title: "结算日期",
        value: [],
        props: {
            valueFormat:"YYYY-MM-DD"
        }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    }
]

export const COLUMNS_SETTLE_SYS = [
     {
        title: '结算批次名称',
        dataIndex: 'settleBatchName',
         fixed: 'left',
         width: 150,
        scopedSlots: { customRender: 'settleBatchName' }
    },
    {
        title: '任务名称',
        dataIndex: 'name',
        fixed: 'left',
        width: 150,
        scopedSlots: { customRender: 'name' }
    },
    {
        title:'结算状态',
        dataIndex: 'settleStatus',
        fixed: 'left',
        width: 160,
        scopedSlots: { customRender: 'settleStatus' }
    },
    {
        title: '结算批次编号',
        dataIndex: 'settleBatchCode',
        width: 150,
        scopedSlots: { customRender: 'settleBatchCode' }
    },
    {
        title: '任务编号',
        dataIndex: 'taskId',
        width: 150,
        scopedSlots: { customRender: 'taskId' }
    },
    {
        title: '任务类型',
        dataIndex: 'type',
        width:90,
        customRender: (text, row, index) => {
            if (row.type === 1) {
                return '线上'
            } else if (row.type === 2){
                return '线下'
            }
        }
    },
    {
        title: '任务来源企业名称',
        dataIndex: 'enterpriseName',
        width:200,
        scopedSlots: { customRender: 'enterpriseName' }
    },
     {
        title: '园区平台公司',
         dataIndex: 'parkName',
         width:200,
         scopedSlots: { customRender: 'parkName' }
    },
     {
        title: '服务费结算方式',
         dataIndex: 'serviceFeeSettleMode',
        customRender: (text, row, index) => {
            if (row.serviceFeeSettleMode === 1) {
                return '线上'
            } else if (row.serviceFeeSettleMode === 2){
                return '线下'
            }
         },
    },
    {
        title: '服务费计算方式',
         dataIndex: 'serviceFeeCalculateMode',
        customRender: (text, row, index) => {
            if (row.serviceFeeCalculateMode === 1) {
                return '正算'
            } else if (row.serviceFeeCalculateMode === 2){
                return '倒扣'
            }
         },
    },
     {
        title: '支付通道',
        dataIndex: 'payChannel',
        customRender: (text, row, index) => {
            if (row.payChannel === 1) {
                return '招商银行'
            } else if (row.payChannel === 3){
                return '支付宝到卡'
            } else if (row.payChannel === 4) {
                return '支付宝到户'
            }
        }
    },
     {
        title: '包含人员数量',
         dataIndex: 'settleNum',
        width: 120,
         customRender: (text, row, index) => {
            if (row.settleNum) {
                return row.settleNum + '人'
             } 
             return ''
        }
    },
     {
        title: '结算成功数量',
         dataIndex: 'settleSuccessNum',
        width: 120,
         customRender: (text, row, index) => {
            if (row.settleSuccessNum) {
                return row.settleSuccessNum + '笔'
             } 
             return ''
        }
    },
     {
        title: '结算总金额',
         dataIndex: 'settleAmount',
        customRender: (text, row, index) => {
            if (row.settleAmount) {
                return '¥'+row.settleAmount
            } 
            return ''
        }
    },
     {
        title: '结算成功总金额',
         dataIndex: 'settleSuccessAmount',
        customRender: (text, row, index) => {
            if (row.settleSuccessAmount) {
                return '¥'+row.settleSuccessAmount
            } 
            return ''
        }
    },
     {
        title: '园区服务费总额',
         dataIndex: 'parkServiceAmount',
        customRender: (text, row, index) => {
            if (row.parkServiceAmount) {
                return '¥'+row.parkServiceAmount
            } 
            return ''
        }
    },
      {
        title: '平台手续费',
          dataIndex: 'platformFeeAmount',
         customRender: (text, row, index) => {
            if (row.platformFeeAmount) {
                return '¥'+row.platformFeeAmount
            } 
            return ''
        }
    },
       {
        title: '开票总金额',
           dataIndex: 'invoiceAmount',
         customRender: (text, row, index) => {
            if (row.invoiceAmount) {
                return '¥'+row.invoiceAmount
            } 
            return ''
        }
    },
        {
        title: '是否已开票',
            dataIndex: 'isInvoiced',
         customRender: (text, row, index) => {
            if (row.isInvoiced === 1) {
                return '是'
            } else if (row.isInvoiced === 2) {
                return '否'
            }
            return '--'
        }
    },
    {
        title: '税额',
        dataIndex: 'vatFeeAmount',
        customRender: (text, row, index) => {
            if (row.vatFeeAmount) {
                return '¥'+row.vatFeeAmount
            } 
            return ''
        }
    },
    {
        title: '上税总额',
        dataIndex: 'vatTotalAmount',
        customRender: (text, row, index) => {
            if (row.vatTotalAmount) {
                return '¥'+row.vatTotalAmount
            } 
            return ''
        }
    },
    {
        title: '园区是否垫资',
        dataIndex: 'isParkPayFor',
        customRender: (text, row, index) => {
            if (row.isParkPayFor === 1) {
                return '是'
            } else if (row.isParkPayFor === 2){
                return '否'
            }
            return '--'
        },
         width:120
    },
    {
        title: '更新时间',
        dataIndex: 'updatedTime',
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' },
        fixed: 'right',
    }
]
export const COLUMNS_SETTLE_ENTERPRISE = [
    {
        title: '结算批次名称',
        dataIndex: 'settleBatchName',
          fixed: 'left',
        width: 150,
        scopedSlots: { customRender: 'settleBatchName' },
    },
     {
        title: '任务名称',
        dataIndex: 'name',
        fixed: 'left',
        width: 150,
         scopedSlots: { customRender: 'name' },
    },
    {
        title: '结算状态',
        dataIndex: 'settleStatus',
        fixed: 'left',
         width:160,
        scopedSlots: { customRender: 'settleStatus' },
    },
    {
        title: '结算批次编号',
        dataIndex: 'settleBatchCode',
        width: 150,
        scopedSlots: { customRender: 'settleBatchCode' }
    },
    {
        title: '任务编号',
        dataIndex: 'taskId',
        width: 150,
        scopedSlots: { customRender: 'taskId' }
    },
     {
        title: '任务类型',
        dataIndex: 'type',
        width:90,
        customRender: (text, row, index) => {
            if (row.type === 1) {
                return '线上'
            } else if (row.type === 2){
                return '线下'
            }
        }
    },
     {
        title: '园区平台公司',
         dataIndex: 'parkName',
          scopedSlots: { customRender: 'parkName' }
    },
     {
        title: '服务费结算方式',
         dataIndex: 'serviceFeeSettleMode',
        customRender: (text, row, index) => {
            if (row.serviceFeeSettleMode === 1) {
                return '线上'
            } else if (row.serviceFeeSettleMode === 2){
                return '线下'
            }
         },
    },
    {
        title: '服务费计算方式',
         dataIndex: 'serviceFeeCalculateMode',
        customRender: (text, row, index) => {
            if (row.serviceFeeCalculateMode === 1) {
                return '正算'
            } else if (row.serviceFeeCalculateMode === 2){
                return '倒扣'
            }
         },
    },
     {
        title: '支付通道',
         dataIndex: 'payChannel',
        customRender: (text, row, index) => {
            if (row.payChannel === 1) {
                return '招商银行'
            } else if (row.payChannel === 3){
                return '支付宝到卡'
            }else if (row.payChannel === 4) {
                return '支付宝到户'
            }
        }
    },
     {
        title: '包含人员数量',
         dataIndex: 'settleNum',
         width: 120,
         customRender: (text, row, index) => {
            if (row.settleNum) {
                return row.settleNum + '人'
             } 
             return ''
        }
    },
     {
        title: '结算成功数量',
         dataIndex: 'settleSuccessNum',
         width: 120,
         customRender: (text, row, index) => {
            if (row.settleSuccessNum) {
                return row.settleSuccessNum + '笔'
             } 
             return ''
        }
    },
     {
        title: '结算总金额',
         dataIndex: 'settleAmount',
        customRender: (text, row, index) => {
            if (row.settleAmount) {
                return '¥'+row.settleAmount
            } 
            return ''
        }
    },
     {
        title: '结算成功总金额',
         dataIndex: 'settleSuccessAmount',
        customRender: (text, row, index) => {
            if (row.settleSuccessAmount) {
                return '¥'+row.settleSuccessAmount
            } 
            return ''
        }
    },
     {
        title: '园区服务费总额',
         dataIndex: 'parkServiceAmount',
        customRender: (text, row, index) => {
            if (row.parkServiceAmount) {
                return '¥'+row.parkServiceAmount
            } 
            return ''
        }
    },
     
       {
        title: '开票总金额',
           dataIndex: 'invoiceAmount',
        customRender: (text, row, index) => {
            if (row.invoiceAmount) {
                return '¥'+row.invoiceAmount
            } 
            return ''
        }
    },
        {
        title: '是否已开票',
        dataIndex: 'isInvoiced',
        customRender: (text, row, index) => {
            if (row.isInvoiced === 1) {
                return '是'
            } else if (row.isInvoiced === 2) {
                return '否'
            }
            return '--'
            },
        width:120
    },
    {
        title: '更新时间',
        dataIndex: 'updatedTime',
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' },
        fixed: 'right',
    }
]
export const COLUMNS_TSTTLE_PARK = [
     {
        title: '结算批次名称',
        dataIndex: 'settleBatchName',
         fixed: 'left',
         width: 150,
        scopedSlots: { customRender: 'settleBatchName' }
    },
      {
        title: '任务名称',
        dataIndex: 'name',
        fixed: 'left',
          width: 150,
        scopedSlots: { customRender: 'name' }
    },
    {
         title: '结算状态',
        dataIndex: 'settleStatus',
        fixed: 'left',
          width: 160,
        scopedSlots: { customRender: 'settleStatus' }
    },
    {
        title: '结算批次编号',
        dataIndex: 'settleBatchCode',
        width: 150,
        scopedSlots: { customRender: 'settleBatchCode' }
    },
    {
        title: '任务编号',
        dataIndex: 'taskId',
        width: 150,
        scopedSlots: { customRender: 'taskId' }
    },
    {
        title: '任务类型',
        dataIndex: 'type',
        width:90,
        customRender: (text, row, index) => {
            if (row.type === 1) {
                return '线上'
            } else if (row.type === 2){
                return '线下'
            }
        }
    },
     {
        title: '任务来源企业名称',
         dataIndex: 'enterpriseName',
        scopedSlots: { customRender: 'enterpriseName' }
    },
     {
        title: '服务费结算方式',
         dataIndex: 'serviceFeeSettleMode',
        customRender: (text, row, index) => {
            if (row.serviceFeeSettleMode === 1) {
                return '线上'
            } else if (row.serviceFeeSettleMode === 2){
                return '线下'
            }
        }
    },
    {
        title: '服务费计算方式',
         dataIndex: 'serviceFeeCalculateMode',
        customRender: (text, row, index) => {
            if (row.serviceFeeCalculateMode === 1) {
                return '正算'
            } else if (row.serviceFeeCalculateMode === 2){
                return '倒扣'
            }
         },
    },
     {
        title: '支付通道',
         dataIndex: 'payChannel',
        customRender: (text, row, index) => {
            if (row.payChannel === 1) {
                return '招商银行'
            } else if (row.payChannel === 3){
                return '支付宝到卡'
            }else if (row.payChannel === 4){
                return '支付宝到户'
            }
        }
    },
     {
        title: '包含人员数量',
         dataIndex: 'settleNum',
        width: 120,
         customRender: (text, row, index) => {
            if (row.settleNum) {
                return row.settleNum + '人'
             } 
             return ''
        }
    },
     {
        title: '结算成功数量',
         dataIndex: 'settleSuccessNum',
        width: 120,
         customRender: (text, row, index) => {
            if (row.settleSuccessNum) {
                return row.settleSuccessNum + '笔'
             } 
             return ''
        }
    },
     {
        title: '结算总金额',
         dataIndex: 'settleAmount',
        customRender: (text, row, index) => {
            if (row.settleAmount) {
                return '¥'+row.settleAmount
            } 
            return ''
        }
    },
     {
        title: '结算成功总金额',
         dataIndex: 'settleSuccessAmount',
        customRender: (text, row, index) => {
            if (row.settleSuccessAmount) {
                return '¥'+row.settleSuccessAmount
            } 
            return ''
        }
    },
     {
        title: '园区服务费总额',
         dataIndex: 'parkServiceAmount',
        customRender: (text, row, index) => {
            if (row.parkServiceAmount) {
                return '¥'+row.parkServiceAmount
            } 
            return ''
        }
    },
     {
        title: '平台手续费',
         dataIndex: 'platformFeeAmount',
        customRender: (text, row, index) => {
            if (row.platformFeeAmount) {
                return '¥'+row.platformFeeAmount
            } 
            return ''
        }
    },
       {
        title: '开票总金额',
           dataIndex: 'invoiceAmount',
        customRender: (text, row, index) => {
            if (row.invoiceAmount) {
                return '¥'+row.invoiceAmount
            } 
            return ''
        }
    },
        {
        title: '税额',
            dataIndex: 'vatFeeAmount',
        customRender: (text, row, index) => {
            if (row.vatFeeAmount) {
                return '¥'+row.vatFeeAmount
            } 
            return ''
        }
    },
        
        {
        title: '上税总额',
        dataIndex: 'vatTotalAmount',
        scopedSlots: { customRender: 'vatTotalAmount' },
        width:200
    },
         {
        title: '园区是否垫资',
             dataIndex: 'isParkPayFor',
        customRender: (text, row, index) => {
            if (row.isParkPayFor === 1) {
                return '是'
            } else if (row.isParkPayFor === 2){
                return '否'
            }
            return '--'
        }
    },
        {
        title: '是否已开票',
            dataIndex: 'isInvoiced',
         customRender: (text, row, index) => {
            if (row.isInvoiced === 1) {
                return '是'
            } else if (row.isInvoiced === 2) {
                return '否'
            }
            return '--'
            },
          width:120
    },
    {
        title: '更新时间',
        dataIndex: 'updatedTime',
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' },
        fixed: 'right',
    }
]

export const SETTLE_TAB_ENTERPRISE = [
    { key: '', tab: '全部' },
    { key: '2', tab: '结算申请中' },
    { key: '7', tab: '银行发放中'},
    { key: '3', tab: '结算成功' },
    { key: '4', tab: '部分结算成功' },
    { key: '5', tab: '结算失败' },
    { key: '6', tab: '已驳回' }
]
export const SETTLE_TAB_PARK = [
    { key: '', tab: '全部' },
    { key: '1', tab: '待服务商审核' },
    { key: '2', tab: '结算申请中' },
    { key: '7', tab: '银行发放中'},
    { key: '3', tab: '结算成功' },
    { key: '4', tab: '部分结算成功' },
    { key: '5', tab: '结算失败' },
    { key: '6', tab: '已驳回'}
]

export const options = {
    grid:{
        left: 0,
        right: 10,
        bottom: 0,
        top:30,
        containLabel: true
    },
    xAxis:{
        type : 'category',
        data: [],
        axisLabel:{
            interval:0,
            margin:10,
            textStyle:{
                color:'#000',
                fontSize:14,
            }
        },
        axisLine: {
            show: true,
            lineStyle: {
                color:'#065670'
            }
        },
        axisTick: {
            show: false
        },
    },
    yAxis:[
        {
            position:'',
            type: 'value',
            name: '',
            axisTick: {
                show: true
            },
            axisLine:{show:false},
            axisLabel: {
                textStyle:{color:'#999',fontSize: 14},
            },
            splitLine: {
                show: true,
            }
        }
    ],
    series:[
        {
            name:'',
            type:'bar',
            yAxisIndex: 0,
            label: {
                show: true, 
                position: 'top', 
                distance: 20, 
                verticalAlign: 'middle',
                textStyle: { 
                    color: 'black',
                    fontSize: 16
                },
                formatter: (params) => {
                    var str = params.data.yAxisIndex === 0 ? '元':'笔'
                    return params.data.value +' '+str;
                },
            },
            itemStyle: {
                normal: {
                    barBorderRadius:[30,30,0,0],
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: '#00C0FA'
                    }, {
                        offset: 1,
                        color: '#015EEA'
                    }]),
                }
            },
            animationDuration:2800,
            animationEasing:"cubicInOut",
            barWidth:40,
            data: []
        }
    ]
}

export const PARAMS_SETTLE_USER = [
     {
        type: "a-input",
        field: "userName",
        title: "姓名",
        value: "",
        props: {placeholder:"请输入姓名"}
    },
    {
        type: "a-input",
        field: "idCard",
        title: "身份证号码",
        value: "",
        props: { placeholder: "请输入身份证号码" },
        validate: [
            {
            validator: (rule, val, d) => {
                val && !/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(val) ? d(true) : d();
            },
            message: "身份证号码输入有误"
            }
        ]
    },
    {
        type: "select",
        field: "signStatus",
        title: "签约状态",
        className:'custom-select',
        value: "",
        options:[{value:'',label:'全部'},{value:1,label:'未签约'},{value:2,label:'已签约'},{value:3,label:'待签约'},{value:4,label:'签约失败'}],
        props: {placeholder:"请选择签约状态"}
    },
    {
        type: "select",
        field: "settleStatus",
        title: "结算状态",
        className:'custom-select',
        value: "",
        options:[{value:'',label:'全部'},{value:3,label:'结算成功'},{value:5,label:'结算失败'}],
        props: {placeholder:"请选择结算状态"}
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
    {
      type:'a-button',
        field: 'back',
      class:'ant-btn-warning',
      props:{
          icon:"logout"
      },
      children:['返回'],
      emit: ['click'],
      emitPrefix: 'btn-back',
    }
]

export const COLUMNS_TSTTLE_USER = [
    {
        title: '姓名',
        dataIndex: 'userName',
        fixed: 'left',
        width:90
    },
    {
        title: '银行卡号/支付宝',
        dataIndex: 'bankCard',
        fixed: 'left',
        width:150,
        scopedSlots: { customRender: 'bankCard' },
    },
    {
        title: '结算金额',
        dataIndex: 'settleAmount',
        fixed: 'left',
        width: 120,
         customRender: (text, row, index) => { 
            if (row.settleAmount) {
                 return '¥'+row.settleAmount
             }
            return '';
        }
    },
    {
        title: '签约状态',
        dataIndex: 'signStatus',
        fixed: 'left',
        customRender: (text, row, index) => {
            if (row.signStatus === 1) {
                return '未签约'
            } else if (row.signStatus === 2){
                return '已签约'
            }else if (row.signStatus === 3){
                return '待签约'
            }else if (row.signStatus === 4){
                return '签约失败'
            }
            return '未签约'
        },
        width:100
    },
     {
        title: '结算状态',
         dataIndex: 'settleStatus',
         fixed: 'left',
        scopedSlots: { customRender: 'settleStatus' },
        width:140
    },
     {
         title: '身份证号',
         dataIndex: 'idCard',
         width: 100,
         scopedSlots: { customRender: 'idCard' },
    },
    {
        title: '服务费率',
        dataIndex: 'serviceFeeRatio',
        width: 120,
        customRender: (text, row, index) => { 
            if (row.serviceFeeRatio) {
                 return row.serviceFeeRatio + '%'
             }
            return '';
        }
    },
     {
        title: '服务费',
         dataIndex: 'serviceFeeAmount',
         width: 140,
        customRender: (text, row, index) => { 
            if (row.serviceFeeAmount) {
                 return '¥'+row.serviceFeeAmount
             }
            return '';
        }
    },
     {
        title: '开票金额',
         dataIndex: 'invoiceAmount',
         width: 140,
         customRender: (text, row, index) => { 
            if (row.invoiceAmount) {
                 return '¥'+row.invoiceAmount
             }
            return '';
        }
    },
     {
        title: '结算时间',
         dataIndex: 'settleTime',
        width:200
    },
    {
        title: '签约方式',
        dataIndex: 'signMode',
        customRender: (text, row, index) => {
            if (row.signMode === 1) {
                return '--'
            } else if (row.signMode === 2){
                return '短信签约'
            }else if (row.signMode === 3){
                return '小程序签约'
            }else if (row.signMode === 4){
                return '线下签约'
            }
            return '--'
        },
        width:140
    },
    {
        title: '是否为董监高',
        dataIndex: 'isDjg',
        customRender: (text, row, index) => {
            if (row.isDjg === 1) {
                return '是'
            } else if (row.isDjg === 2){
                return '否'
            }else if (row.isDjg === 3){
                return '验证失败'
            }else if (row.isDjg === 4){
                return ''//未验证
            }
            return '--'
        },
        width:140
    },
    {
        title: '结算失败原因',
        dataIndex: 'settleFailReason',
        scopedSlots: { customRender: 'settleFailReason' },
    },
    {
        title: '备注',
        dataIndex: 'remark',
        scopedSlots: { customRender: 'remark' },
        fixed: 'right',
        width:90
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' },
        fixed: 'right',
    }
]

export const COLUMNS_GRANT = [
    {
        title: '姓名',
        dataIndex: 'userName',
        fixed: 'left',
        width:90
    },
    {
        title: '手机号',
        dataIndex: 'phone',
        fixed: 'left',
        width:90
    },
    {
         title: '身份证号',
        dataIndex: 'idCard',
         fixed: 'left',
        width: 120,
        scopedSlots: { customRender: 'idCard' },
    },
    {
        title: '银行卡号/支付宝',
        dataIndex: 'bankCard',
        fixed: 'left',
        width: 120,
        scopedSlots: { customRender: 'bankCard' },
    },
   {
        title: '结算状态',
         dataIndex: 'settleStatus',
       fixed: 'left',
       scopedSlots: { customRender: 'settleStatus' },
        width:140
    },
     {
        title: '结算金额',
        dataIndex: 'settleAmount',
         width: 140,
        customRender: (text, row, index) => { 
            if (row.settleAmount) {
                 return '¥'+row.settleAmount
             }
            return '';
        }
    },
     
    {
        title: '服务费率',
        dataIndex: 'serviceFeeRatio',
        width: 120,
        customRender: (text, row, index) => { 
            if (row.serviceFeeRatio) {
                 return row.serviceFeeRatio +'%'
             }
            return '';
        }
    },
     {
        title: '服务费',
         dataIndex: 'serviceFeeAmount',
         width: 140,
        customRender: (text, row, index) => { 
            if (row.serviceFeeAmount) {
                 return '¥'+row.serviceFeeAmount
             }
            return '';
        }
    },
     {
        title: '开票金额',
         dataIndex: 'invoiceAmount',
         width: 140,
         customRender: (text, row, index) => { 
            if (row.invoiceAmount) {
                 return '¥'+row.invoiceAmount
             }
            return '';
        }
    },
    {
        title: '关联企业',
         dataIndex: 'enterpriseName',
        width: 230,
        scopedSlots: { customRender: 'enterpriseName' }
    },
     {
        title: '关联园区服务商',
         dataIndex: 'parkName',
         width: 230,
         scopedSlots: { customRender: 'parkName' }
    },
     {
        title: '结算批次编号',
         dataIndex: 'settleBatchCode',
         width: 150,
        scopedSlots: { customRender: 'settleBatchCode' }
    },
    {
        title: '结算批次名称',
         dataIndex: 'settleBatchName',
        width: 150,
        scopedSlots: { customRender: 'settleBatchName' }
    },
     {
        title: '任务类型',
         dataIndex: 'taskType',
         width: 100,
         customRender: (text, row, index) => {
            if (row.taskType === 1) {
                return '线上'
            } else if (row.taskType === 2){
                return '线下'
            }
        }
    },
    {
        title: '任务编号',
         dataIndex: 'taskId',
        width: 150,
        scopedSlots: { customRender: 'taskId' }
    },
    {
        title: '任务名称',
         dataIndex: 'taskName',
        width: 150,
        scopedSlots: { customRender: 'taskName' }
    },
    {
        title: '服务费计算方式',
        dataIndex: 'serviceFeeCalculateMode',
         width:140,
        customRender: (text, row, index) => {
            if (row.serviceFeeCalculateMode === 1) {
                return '正算'
            } else if (row.serviceFeeCalculateMode === 2){
                return '倒扣'
            }
         },
    },
     {
        title: '支付通道',
         dataIndex: 'payChannel',
         width:140,
        customRender: (text, row, index) => {
            if (row.payChannel === 1) {
                return '招商银行'
            } else if (row.payChannel === 3){
                return '支付宝到卡'
            }else if (row.payChannel === 4){
                return '支付宝到户'
            }
        }
    },
    {
        title: '签约方式',
        dataIndex: 'signMode',
        customRender: (text, row, index) => {
            if (row.signMode === 1) {
                return '--'
            } else if (row.signMode === 2){
                return '短信签约'
            }else if (row.signMode === 3){
                return '小程序签约'
            }else if (row.signMode === 4){
                return '线下签约'
            }
            return '--'
        },
        width:140
    },
    {
        title: '签约状态',
        dataIndex: 'signStatus',
        customRender: (text, row, index) => {
            if (row.signStatus === 1) {
                return '未签约'
            } else if (row.signStatus === 2){
                return '已签约'
            }else if (row.signStatus === 3){
                return '待签约'
            }else if (row.signStatus === 4){
                return '签约失败'
            }
            return '未签约'
        },
        width:100
    },
    {
        title: '结算失败原因',
        dataIndex: 'settleFailReason',
        scopedSlots: { customRender: 'settleFailReason' }
    },
     {
        title: '结算时间',
         dataIndex: 'settleTime',
        width:180
    },
     {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' },
        fixed: 'right',
    }
]

export const OPTION_INLINE = {
    form: {layout: 'inline'},
    resetBtn: false,
    submitBtn: false
  }
  export const OPTION_BLOCK= {
    form: { layout: "vertical" },
    row:{gutter: 20},
    resetBtn: false,
    submitBtn: false
  }
